import request from '@/utils/request'

// 查询专项检查列表
export function listSpecialinspection(query) {
  return request({
    url: '/biz/specialinspection/list',
    method: 'get',
    params: query
  })
}

// 查询专项检查详细
export function getSpecialinspection(specialInspectionId) {
  return request({
    url: '/biz/specialinspection/' + specialInspectionId,
    method: 'get'
  })
}

// 新增专项检查
export function addSpecialinspection(data) {
  return request({
    url: '/biz/specialinspection',
    method: 'post',
    data: data
  })
}

// 修改专项检查
export function updateSpecialinspection(data) {
  return request({
    url: '/biz/specialinspection',
    method: 'put',
    data: data
  })
}

// 删除专项检查
export function delSpecialinspection(specialInspectionId) {
  return request({
    url: '/biz/specialinspection/' + specialInspectionId,
    method: 'delete'
  })
}
// 导出专项检查
export function exportSpecialinspection(query) {
  return request({
    url: '/biz/specialinspection/export',
    method: 'get',
    params: query
  })
}
